import BaseLayout from "../../layouts/BaseLayout.vue";
import Login from "../../views/login/index.vue";
import Transfer from "../../views/transfer/index.vue";

export default [
  // {
  //   path: '/',
  //   redirect: '/workSpace'
  // },
  {
    path: "/login",
    component: Login,
    meta: { title: "登录页面" },
  },
  {
    path: "/transfer",
    component: Transfer,
    meta: { title: "中转页" },
  },
  {
    path: "/error",
    component: BaseLayout,
    meta: { title: "错误页面" },
    children: [
      {
        path: "/error/404",
        component: () => import("../../views/error/404.vue"),
        meta: { title: "404" },
      },
    ],
  },
  {
    path: "/system",
    component: BaseLayout,
    meta: { title: "系统管理" },
    children: [
      {
        path: "/system/user",
        component: () => import("../../views/system/user/index.vue"),
        meta: { title: "用户管理", requireAuth: true },
      },
      {
        path: "/system/role",
        component: () => import("../../views/system/role/index.vue"),
        meta: { title: "角色管理", requireAuth: true },
      },
      {
        path: "/system/menu",
        component: () => import("../../views/system/menu/index.vue"),
        meta: { title: "菜单管理", requireAuth: true },
      },
    ],
  },
  {
    path: "/enrollee",
    component: BaseLayout,
    meta: { title: "个人中心" },
    children: [
      {
        path: "/enrollee/profile",
        component: () => import("../../views/enrollee/profile/index.vue"),
        meta: { title: "我的资料", requireAuth: true },
      },
      {
        path: "/enrollee/message",
        component: () => import("../../views/enrollee/message/index.vue"),
        meta: { title: "我的消息", requireAuth: true },
      },
    ],
  },
];
